//
//  ProductDetailWebView.m
//  LoveTrail
//
//  Created by giantumbrella on 15/6/25.
//  Copyright (c) 2015年 赵娟. All rights reserved.
//

#import "ProductDetailWebView.h"
#import "CommonMacro.h"
@implementation ProductDetailWebView

- (id) initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self addProductDetailWeb];
    }
    return self;
}

#pragma mark 添加商品详情网页
- (void)addProductDetailWeb
{
    self.productWeb = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT*0.74)];
    [self addSubview:self.productWeb];
    
    NSURL *url=[NSURL URLWithString:@"http://fwhetou.com/index/index.html"];
    [self.productWeb loadRequest:[NSURLRequest requestWithURL:url]];
    
    //此处是处理网页黑条条的状况
    self.productWeb.opaque = NO;
    self.productWeb.backgroundColor = [UIColor clearColor];

}
@end
